<?php
global $wp_admin_bar;
$wp_admin_bar->remove_menu('wp-logo');
$wp_admin_bar->remove_menu('site-name');
$wp_admin_bar->remove_menu('new-content');
$wp_admin_bar->remove_menu('user-info');
$wp_admin_bar->remove_menu('tribe-events');

$wp_admin_bar->remove_menu('search');

$wp_admin_bar->remove_node('updates');
$wp_admin_bar->remove_node('comments');
//$wp_admin_bar->add_menu(array('id' => 'toolbar_logo', 'title' => '<img src="' . get_template_directory_uri() . '/images/d-icon.png" alt="logo" title="Home" style="height:25px;">', 'href' => get_bloginfo('home')));
//$wp_admin_bar->add_menu(array('id' => 'toolbar_logo', 'title' => '<img src="' . get_template_directory_uri() . '/images/d-icon.png" alt="logo" title="Home" style="height:20px;vertical-align:middle;">&nbsp;&nbsp;&nbsp;Go Back To Homepage', 'href' => get_bloginfo('home')));
$wp_admin_bar->add_menu(array('id' => 'toolbar_logo', 'title' => 'Go Back To directionkathmandu.com', 'href' => get_bloginfo('home')));
//$wp_admin_bar->add_menu(array('id' => 'smashing-subinmertz', 'title' => __('ExoplanetArchive'), 'href' => 'http://exoplanetarchive.ipac.caltech.edu/index.html'));
//$wp_admin_bar->add_menu(array('id' => 'smashing-subinmertz-count', 'parent' => 'smashing-subinmertz', 'title' => 'title-child', 'href' => '#'));
//$wp_admin_bar->add_menu(array('id' => 'smashing-subinmertz-count1', 'parent' => 'smashing-subinmertz-count', 'title' => 'title-child1', 'href' => '#'));
// add a child item to our parent item
?>
<style>
    #wp-admin-bar-toolbar_logo a.ab-item:before{
        content: "\f340";
        display: inline-block;
        -webkit-font-smoothing: antialiased;
        font: normal 20px/1 'dashicons';
        vertical-align: top;
    }
</style>